package com.kll.carolinehmibiz.presentation.listener

import com.kll.carolinehmibiz.net.bean.GetUserInfoResponse
import java.io.File

interface MainUcenterProtocol {

    interface IView {
        // 获取用户信息成功
        fun getUserInfoSuccessed(data: GetUserInfoResponse)
        // 获取用户信息失败
        fun getUserInfoFailed(code: Int, message: String)
        // 修改用户信息成功
        fun editUserInfoSuccessed()
        // 修改用户信息失败
        fun editUserInfoFailed(code: Int, message: String)
        // 上传头像成功
        fun uploadHeadImgSuccessed(path: String)
        // 上传头像失败
        fun uploadHeadImgFailed(code: Int, message: String)
    }

    interface IPresenter{
        // 获取用户信息
        fun getUser()
        // 修改用户信息
        fun editUserInfo(userInfo: GetUserInfoResponse)
        // 上传头像
        fun uploadHeadImg(file: File)
    }

}